﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<TemplateWeb.Models.ViewModels.GroupViewModel>" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="box_border" style="margin: 10px 0 12px 10px; border: none;">
        <div class="NewsDetail">
            <div class="NewsDetail-title">
                <h1 class="titlePage">Tin tức: <%= Model.LoaiTinTucModel.GetModel.LstObjModel.First(n=>n.ID ==  Model.TinTucModel.ReferKeys.IDLoaiTinTuc).TenLoaiTinTuc %></h1>
            </div>
            <div class="ArticleContent">
                <!-- Show info item -->
                    <% for (int i = 0; i < Model.TinTucModel.GetModel.LstObjModel.Count; i++)
                        { %>
                            <div class="fullwidth">
                                <% Html.RenderPartial("Templates/TH_TinTucItem", Model.TinTucModel.GetModel.LstObjModel[i]); %> 
                            </div>
                     <% } %>
            </div>
            <div class="other"></div>
            <% GridPagerProperties properties = new GridPagerProperties()
                {
                    //paging
                    PageSize = WebConfiguration.NumTinTucPerPage,
                    RecordCount = Model.TinTucModel.GetModel.TotalItem,
                    CurrentPageIndex = Model.TinTucModel.GetModel.CurrentPage,
                    TransferValue = Model.TinTucModel.ReferKeys.IDLoaiTinTuc,
                    TypeOfParam = EnumTypeOfParam.TINTUC,
                    //action link
                    Controller = "Home",
                    ActionName = "TinTuc"
                }; 
            %>
            <%= Html.GridPagerWithoutAjax(properties)%>
        </div>
    </div>
</asp:Content>
